{% extends "./component/_layout.html" %} {% block content %}
<!-- banner -->
<div class="home-banner">
    <div class="swiper-container">
        <div class="swiper-wrapper">
            {% for banner in banners %}
            <div class="swiper-slide" style="background-image:url({{banner.img}})">
                {# <a href="{% if banner.href %}{{banner.href}}{%else%}javascript:;{%endif%}" title="">
                    <img src="{{banner.img}}" alt="{{banner.name}}" >
                </a> #}
            </div>
            {% else %}
            <div class="swiper-slide" style="background-image:url(/public/front/pic/banner.jpg)">
            </div>
            {% endfor %}
        </div>
        <div class="pagination"></div>
    </div>
    <div class="wrapper">
        <a class="link01" href="http://www.101.com" target="_blank">华渔官网</a>
        <a class="link02" href="http://omc.101.com" target="_blank">产品资料中心</a>
    </div>
</div>
<!-- /banner -->
<div class="home-container">
    <!-- 快捷入口 -->
    <div class="quick-entry-wrap">
        <div class="wrapper clearfix">
            <div class="quick-entry-item fl">
                <a class="btn" href="/article/list?name={{ctx.helper.encodeURIComponent('华渔准则')}}&templateType=1" title="">
                    <img class="img1" src="/public/front/img/bg-quick-01-2.png" alt="">
                    <span class="text">发布最权威的教育业务品牌规范</span>
                </a>
            </div>
            <div class="quick-entry-item">
                <a class="btn" href="/article/list?name={{ctx.helper.encodeURIComponent('标准文档')}}&templateType=4" title="">
                    <img class="img2" src="/public/front/img/bg-quick-02-2.png" alt="">
                    <span class="text">汇总最完整的教育业务资讯</span>
                </a>
            </div>
            <div class="quick-entry-item fr">
                <a class="btn" href="/article/list?name={{ctx.helper.encodeURIComponent('新闻资讯')}}&templateType=5" title="">
                    <img class="img3" src="/public/front/img/bg-quick-03-2.png" alt="">
                    <span class="text">收录教育业务最全面的新闻报道</span>
                </a>
            </div>
        </div>
    </div>
    <!-- /快捷入口 -->
    <div class="container clearfix">
        <div class="wrapper clearfix">
            <div class="announcement">
                <div class="item-tit">
                    <h2>公告</h2>
                    <a class="more" href="/article/list?name={{ctx.helper.encodeURIComponent('公告')}}&templateType=5">更多</a>
                </div>
                <ul class="an-list">
                    {% for announcement in announcements %}
                    <li class="clearfix">
                        <span class="date" time="{{announcement.publish_time}}">{{ctx.helper.formatDate(announcement.publish_time,'MM-DD')}}</span>
                        <a href="/article/detail?articleId={{announcement.id}}">
                            <p class="ar">{{announcement.title}}</p>
                        </a>
                    </li>
                    {% endfor %}
                </ul>
            </div>
            <div class="hy-set">
                <div class="item-tit">
                    <h2>华渔定见</h2>
                    <a class="more" href="/article/list?name={{ctx.helper.encodeURIComponent('华渔定见')}}&templateType=2">更多</a>
                </div>
                <div class="hy-item clearfix">
                    <div class="img-box fl">
                        {# 宽345 高424 #}
                        <img src="{{mindSets[0].img}}" alt="{{mindSets[0].title}}">
                    </div>
                    <div class="hy-info">
                        <p class="author">{{mindSets[0].author}}</p>
                        <p class="time">{{ctx.helper.formatDate(mindSets[0].publish_time,'YYYY-MM-DD')}}</p>
                        <p class="content">{{mindSets[0].sub_title}}</p>
                    </div>
                    <a class="tit" href="/article/detail?articleId={{mindSets[0].id}}">
                        <p>{{mindSets[0].title}}</p>
                    </a>
                </div>
            </div>
        </div>
        <div class="wrapper">
            <div class="hy-view">
                <div class="item-tit">
                    <h2>华渔视界</h2>
                    <a class="more" href="/article/list?name={{ctx.helper.encodeURIComponent('华渔视界')}}&templateType=3">更多</a>
                </div>
                <ul class="view-item clearfix">
                    {% for fieldView in fieldViews %}
                    <li>
                        <a href="/article/detail?articleId={{fieldView.id}}&video=1">
                            <img src="{{fieldView.img}}" alt="">
                            <div class="mask"></div>
                            <span class="play"></span>
                            <p>{{fieldView.title}}</p>
                        </a>
                    </li>
                    {% endfor %}
                </ul>
            </div>

        </div>
    </div>
</div>
{% endblock %} {% block script %}
<script src="/public/front/js/idangerous.swiper.min.js"></script>
<script src="/public/front/js/index.js?version=168732146sd98sad"></script>
{% endblock %}
